package com.hsgene.order.service.api.impl;

import com.hsgene.common.util.exception.CommonErrorCode;
import com.hsgene.common.util.result.ApiResult;
import com.hsgene.logistics.domain.LogisticsInfo;
import com.hsgene.order.service.api.LogisticsService;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author wangbing
 * @version 1.0, 2018/12/12
 */
@Component
public class LogisticsServiceImpl implements LogisticsService {
    @Override
    public ApiResult<List<LogisticsInfo>> queryLogistics(String orderId) {
        return ApiResult.fail(CommonErrorCode.LOGISTICS_SERVICE_NOT_AVAILABLE);
    }

    @Override
    public ApiResult addLogistics(LogisticsInfo info) {
        return ApiResult.fail(CommonErrorCode.LOGISTICS_SERVICE_NOT_AVAILABLE);
    }
}
